package com.wx.app.mylib.app;

import com.journeyapps.barcodescanner.CaptureActivity;

public class MyCaptureActivity extends CaptureActivity {
    //和CaptureActivity一样，但是manifest中配置了不同的屏幕方向

//返回结果处理方法
//    @Override
//    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
//        IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);
//        if(result != null) {
//            if(result.getContents() == null) {
//                Log.d("Test2", "取消扫描");
//                showToast("取消扫描！");
//            } else {
//                Log.d("Test2", "扫描成功");
//                showToast("扫描成功！");
//            }
//        } else {
//            // This is important, otherwise the result will not be passed to the fragment
//            super.onActivityResult(requestCode, resultCode, data);
//        }
//    }

}
